Repository navigation
fix(app-shell): AI chat publish seed warning says the pack sentence, not engine text - #35359
Merged
objectstack-fleet[bot] merged 2 commits intoNov 19, 2026
Merged
Conversation
…not engine text Claude-Session: https://claude.ai/code/session_01Utp6CbSphdunq2aJq7ktuY Co-authored-by: Claude <noreply@anthropic.com>
…; add changeset Claude-Session: https://claude.ai/code/session_01Utp6CbSphdunq2aJq7ktuY Co-authored-by: Claude <noreply@anthropic.com>
Contributor
Author
|
repo:objectstack#5 · os-bill · session_01Utp6CbSphdunq2aJq7ktuY Final head for L1:
|
Contributor
Author
|
repo:objectstack#5 · os-bill · session_01Utp6CXsZsKmgG1EcKp5bY4 维护者速读
席位核对 — ACCEPT (L1-a) · repo:objectstack#5 · head
|
Contributor
Author
|
repo:objectstack#5 · os-bill · session_01Utp6CbSphdunq2aJq7ktuY Landing · area ux-1 · 2026-11-19T06:29Z
ACCEPT 7001653966 (L1-a) at head |
objectstack-fleet
Bot
deleted the
claude/issue-35303-ai-chat-seed-warn
branch
November 19, 2026 06:49
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Bill · project thread
Fixes #35303
Clause-②: no
Metadata-protocol: none
维护者速读
[object Object]。[object Object];console AI build chat: the plan card shows 「已搭建」 when nothing was built, a message sent mid-turn is dropped, the draft preview shows OBJECT_NOT_FOUND, and two cards speak in agent/API terms #32984 的裁决是面向用户的文字只用客户句。首页「全部发布」已由 fix(app-shell): publish-all seed warning says the pack sentence, not engine text #35301 改好,这是同族的第二个入口。onPublishDrafts里警告详情取哪句话,另把引擎文本与错误行原样打到浏览器控制台(console.warn);不动接口、语言键和导出。回滚即 revert 本 PR。ui/packages/app-shell/src/console/ai/AiChatPage.tsx(onPublishDrafts里console.ai.seedWarn那一处 toast);ui/packages/app-shell/src/console/ai/__tests__/AiChatPage.seedWarnPackSentence-35303.test.tsx;.changeset/35303-ai-chat-seed-warn-pack-sentence.md。pnpm --dir ui exec vitest run packages/app-shell/src/console/ai/__tests__/AiChatPage.seedWarnPackSentence-35303.test.tsx,预期 6 个用例全绿(en 与 zh-Hans 两种语言)。What changes
AiChatPage'sonPublishDraftswarnsconsole.ai.seedWarnwhen the publish answersseedApplied.success === false. The warning's description used to beseedApplied.error(the seed loader's engine text), elseString(seedApplied.errors[0]), which reads[object Object]for a structured{ row, reason }row.The description is now always the pack sentence
chatbot.build.health.seedFailed: the sentence the chat's publish-health line says for the same failure and the one Publish all says since #35301 (objectstack#32984 Q1 ruling: user-facing text is the customer sentence, never developer or engine text). The engine text and the error rows go toconsole.warn('[app-shell] Published, but the seed failed to load:', { packageId, error, errors }), whole, and they still reach the health line's technical details throughpublishHealthFromResponse, which this diff does not touch.The changeset is
patchon@object-ui/app-shell. No locale keys, props or exports change.Tests
New file
AiChatPage.seedWarnPackSentence-35303.test.tsx, built on thepublishAdvisoryReachesAuthorharness (the real handler,useMetadataClientand its client; stubbedsonner,fetchand the chat tree reduced to the button that firesonPublishDrafts), plusI18nProviderwith the shippedenandzh-Hanspacks. Its own file becauseI18nProviderinstalls a module-level i18next global, which would leak into the sibling pin's default-value reads.seedAppliedfailed witherrorshows the pack'sseedWarntitle andseedFaileddescription; the engine text is absent from the toast and present in the oneconsole.warnline;seedAppliedfailed witherrors: [{ row, reason }]and noerrorshows the pack sentence, never[object Object]; the row reachesconsole.warnas an object;publishOksuccess toast.Each case runs in
enandzh-Hans(6 cases).Acceptance notes
seedAppliedreaders underui/areusePublishAllDrafts(fixed by fix(app-shell): publish-all seed warning says the pack sentence, not engine text #35301),publishHealthFromResponse(already folds the detail under technical details) and the client's type declaration; no third toast producer was found.Verification
All readings at head
09500fa40c.Ablation: the old description restored on disk, 4 red / 2 green, then restored
The fix was committed first (da8a671).
node scripts/ablation-replace.mjsreplaced the new description with the oldseedApplied.error ?? String(seedApplied.errors[0])expression: anchor 1 to 0, replacement 0 to 1, blob af4e13d997 to a8bb0a93e9. The subject resolves through source (relative import), so no build sits between the edit and the run.The 4 failures are the two defect arms in two locales; the 2 passes are the CONTROL cases.
Green on the fixed head
Derived gate families (dispatch-gates --commands, 38 families)
All 38 derived families exited 0, including
pnpm --dir ui exec vitest run scripts/(171 files passed, 2 skipped),check:nul-bytes,check:cross-package-test-inputs,check:test-source-alias,check-empty-changeset,check-adr-0087-registration. Reconciliation:dispatch-gates --ranreports 38 derived, 38 run, 0 NOT-MEASURED, 0 UNRUN, all with recorded exit codes.overlap-check: merges cleanly with origin/main.check:new-line-citations(ui): 0 new citations.The full app-shell suite was not run locally; it is left to CI's Test UI.
🤖 Generated with Claude Code
https://claude.ai/code/session_01Utp6CbSphdunq2aJq7ktuY